package com.macro.mall.tiny.modules.ums.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: i_kun
 * @Desc: o_。
 * @create: 2025-06-26 09:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("course")
public class Course implements Serializable {
    // 主键自增策略[6,8](@ref)
    @TableId(type = IdType.AUTO)
    private Long id;

    // 数据库字段名与Java属性名不一致时显式指定[8](@ref)
    @TableField("course_name")
    private String courseName;

    private String remark;

    private String content;

    /**
     * 删除 1-正常 0-删除
     */
    private Integer isDel;
    /**
     * 评分总数
     */
    private Integer num;


    private String createBy;

    private String updateBy;

    //注解转换时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

//    @Excel(name = "更新时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 图片
     */
    private String img;
}
